package io.geekidea.boot.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.test.entity.PayOrder;
import io.geekidea.boot.test.query.PayOrderQuery;
import io.geekidea.boot.test.vo.PayOrderVo;
import io.geekidea.boot.test.query.AppPayOrderQuery;
import io.geekidea.boot.test.vo.AppPayOrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单 Mapper 接口
 *
 * @author geekidea
 * @since 2025-03-26
 */
@Mapper
public interface PayOrderMapper extends BaseMapper<PayOrder> {

    /**
     * 订单详情
     *
     * @param id
     * @return
     */
    PayOrderVo getPayOrderById(Long id);

    /**
     * 订单分页列表
     *
     * @param query
     * @return
     */
    List<PayOrderVo> getPayOrderPage(PayOrderQuery query);

    /**
     * App订单详情
     *
     * @param id
     * @return
     */
    AppPayOrderVo getAppPayOrderById(Long id);

    /**
     * App订单分页列表
     *
     * @param query
     * @return
     */
    List<AppPayOrderVo> getAppPayOrderPage(AppPayOrderQuery query);

}
